<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue</title>
</head>
<script src="vue.js"></script>
<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<body>

    <div id="app">
        <div class="container-fluid">
            <div class="row-fluid">
                <div class="span12">
                    <h3 class="text-center text-warning">
                        这是一套可视化布局系统.
                    </h3>
                    <table class="table table-hover">
                        <thead>
                        <tr>
                            <th>
                                标题
                            </th>
                            <th>
                                内容
                            </th>
                            <th>
                                点击量
                            </th>
                        </tr>
                        </thead>
                        <tbody>
                        <!--开始循环-->
                        <tr v-for="filed in fileds ">
                            <td>{{filed.title}}</td>
                            <td>{{filed.comment}}</td>
                            <td>{{filed.click}}</td>
                        </tr>
                        </tbody>
                    </table>
                    <p>
                    </p>
                </div>
            </div>
        </div>
    </div>

<script>
    var app=new Vue({
        el:'#app',
        data: {
            fileds:[
                {
                    title:'后端君',
                    comment:'走丽水',
                    click:'200'

                },
                {
                    title:'后端君2',
                    comment:'走丽水2',
                    click:'2002'
                },
                {
                    title:'后端君3',
                    comment:'走丽水3',
                    click:'20023'
                },
            ]
        },
        methods:{
            test(){
                alert('sadf');
            }


            },


    });

</script>
</body>
</html>